package com.bluedot.bank.dao.privilege;

import java.util.List;

import org.hibernate.Query;

import com.bluedot.bank.dao.HibernateDaoSupport;

public class PrivilegeDaoImpl extends HibernateDaoSupport<Privilege, Long> implements
		PrivilegeDao {

	public PrivilegeDaoImpl(){
		this.entityClass=Privilege.class;
	}

	@Override
	public List<Privilege> getAll() {
		Query query =this.getSession().createQuery("from " + Privilege.class.getName());
		List<Privilege> list=query.list();
		return list;
	}

}
